package com.levy.contronller.javaWeb.threadConcurrence;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;

/**
 * 网络连接类  供线程并发测试使用
 * @author liwei
 *
 */
public class ConnectionManager {

	public static URLConnection openUrlConnection(String url, String postData) throws IOException {
		   URL realUrl = new URL(url);
		  URLConnection conn  = (HttpURLConnection) realUrl.openConnection();
		return conn;
		}
}
